<template>
  <section @click="GoTo">
    <router-link :to="path">
      <el-card :body-style="{ padding: '0px' }" shadow="never">
        <img class="image" :src="imgUrl" :alt="title">
      </el-card>
      <p class="title">
        {{ title }}
      </p>
    </router-link>
  </section>
</template>

<script>
export default {
  props: ['path', 'imgUrl', 'title'],
  name: "MenuItem",
  data() {
    return {}
  },
  methods: {
    GoTo() {
    }
  }
}
</script>

<style scoped>

section {
  cursor: pointer;
}

.el-card {
  border: none;
}

a {
  text-decoration: none !important;
}

.image {
  width: 100%;
  display: block;
}

.title {
  margin: 10px auto;
  text-align: center;
  font-size: 13px;
  font-weight: bold;
  color: #666;
}
</style>